﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cinemax.DTO;
namespace Cinemax.DAO
{
    public class PhongChieuDAO
    {
        static rapphimDataContext data = new rapphimDataContext();

        public static PhongChieuDTO GetPhongChieuByID(int id)
        {
            PhongChieuDTO pc = new PhongChieuDTO();
            SP_GET_PHONGCHIEU_BY_IDResult phongchieu = new SP_GET_PHONGCHIEU_BY_IDResult();
            phongchieu = data.SP_GET_PHONGCHIEU_BY_ID(id).ElementAt(0);
            pc = new PhongChieuDTO(phongchieu);
            return pc;
        }
    }
}